import VueRouter from "vue-router"
import Home from './components/tabbar/home.vue'
import Search from './components/tabbar/search.vue'
import ShoppingCart from "./components/tabbar/shoppingCart.vue"
import Member from "./components/tabbar/member.vue"
import NewList from './components/news/newlist.vue'
import NewInfo from './components/news/newInfo.vue'

let router = new VueRouter({
	routes: [
		{path: '/', redirect: '/home'},
		{path: '/home', component: Home},
		{path: '/member', component: Member},
		{path: '/search', component: Search},
		{path: '/shoppingCart', component: ShoppingCart},
		{path: '/home/newlist', component: NewList},
		{path: '/home/newInfo/:id', component: NewInfo}  //规定需要传递一个参数
	],
	linkActiveClass: 'mui-active'


});

export default router;
